package com.grantz.function.bbs.core.impl;

import java.util.Optional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.grantz.function.bbs.core.entity.Comment;
import com.grantz.function.bbs.core.inter.CommentService;
import com.grantz.function.bbs.core.jpa.CommentJPA;
@Service
public class CommentServiceImpl implements CommentService {
	
	@Autowired
	private CommentJPA dao;

	@Override
	public Comment save(Comment entity) {
		return dao.save(entity);
	}

	@Override
	public Optional<Comment> findOneById(String id) {
		return dao.findById(id);
	}

}
